package org.timemanager.view;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;

/**
 * general method to start a new event
 * @author Dereky
 *
 */
public class StartAlertActivity extends Activity {
	public static boolean isOk=false;
//	public static Object lockObject=new Object();
//	public static Lock lockObject=new ReentrantLock();
//	public static Condition lockCondition=lockObject.newCondition();
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.start_alert);
		isOk=false;
		findViewById(R.id.start_alert_ok).setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				isOk=true;
				StartAlertActivity.this.finish();
			}
		});
		findViewById(R.id.start_alert_cancel).setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				StartAlertActivity.this.finish();
			}
		});
		
	}

	@Override
	protected void onDestroy() {
//		synchronized(lockObject){
//			lockObject.notifyAll();
//		}
		super.onDestroy();
//		lockObject.lock();
//		lockCondition.notifyAll();
//		lockObject.unlock();
	}

	
}
